package com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.biz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.biz.service.KpiMedicalOrgService;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiConditionDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiMedicalOrgDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.PaginationQueryDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.KpiMedicalOrgDAO;

@Component("kpiMedicalOrgService")
public class KpiMedicalOrgServiceImpl implements KpiMedicalOrgService {
	@Autowired
	private KpiMedicalOrgDAO kpiMedicalOrgDAO;

	/**
	 * 查询指标数据
	 * 
	 * @param condition
	 * @return
	 */
	@Override
	public List<KpiMedicalOrgDTO> queryKpi(KpiConditionDTO condition) {
		List<KpiMedicalOrgDTO> list = kpiMedicalOrgDAO.getKpiData(condition);
		return list;
	}
	
	/**
	 * 查询指标单一数据
	 * 
	 * @param condition
	 * @return
	 */
	@Override
	public Object querySingleKpi(KpiConditionDTO condition) {
		return kpiMedicalOrgDAO.getSingleKpiData(condition);
	}

	/**
	 * 查询指标数据-指标分析器
	 * 
	 * @param condition
	 * @return
	 */
	@Override
	public List<KpiMedicalOrgDTO> queryKpiAnalyze(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		return kpiMedicalOrgDAO.getKpiAnalyzeData(condition);
	}

	/**
	 * 查询数量-指标分析器
	 * 
	 * @param condition
	 * @return
	 */
	@Override
	public int queryKpiAnalyzeCount(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		return kpiMedicalOrgDAO.getKpiAnalyzeCount(condition);
	}
}
